//
//  XiangqingView.m
//  LOU
//
//  Created by apple on 15/11/9.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "XiangqingView.h"
#import "Size.h"
@implementation XiangqingView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.img = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WindowWidth, 0.36*WindowHeight)];
        [self addSubview:self.img];
        
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(self.frame.size.width-80, self.frame.size.height-50, 100, 35)];
        [self addSubview:view];
        view.userInteractionEnabled = NO;
        view.backgroundColor = [UIColor colorWithRed:10.0f/255.0f green:10.0f/255.0f blue:10.0f/255.0f alpha:0.5];
        view.layer.cornerRadius = 12;
        
        UIImageView *tu = [[UIImageView alloc] initWithFrame:CGRectMake(15, 5, 25, 25)];
        tu.image = [UIImage imageNamed:@"xiangce.png"];
        [view addSubview:tu];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(40, 5, 60, 25)];
        label.text = @"相册";
        label.textColor = [UIColor whiteColor];
        [view addSubview:label];
        
    }
    return self;
}

@end
